/*
package cn.tedu.lbs.article.web.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;

@Configuration
public class RedisConfiguration {
    @Bean
    public RedisTemplate initMyTemplate(RedisConnectionFactory connection){
        RedisTemplate template = new RedisTemplate();
        template.setConnectionFactory(connection);
        //注意使用计步器的客户端 value hashValue必须序列化是String 如果不是 无法计算计步器
        template.setValueSerializer(RedisSerializer.string());
    }
}
*/
